package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"guo-group/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	//注册接口
	beego.Router("/log", &controllers.GroupController{}, "POST:Log")
	//登录接口
	beego.Router("/login", &controllers.GroupController{}, "POST:Login")
	//添加接口
	beego.Router("/add", &controllers.GroupController{}, "POST:Add")
	//查询接口
	beego.Router("/list", &controllers.GroupController{}, "Get:List")
	//删除接口
	beego.Router("/del", &controllers.GroupController{}, "POST:Del")

	beego.Router("/order/login", &controllers.OrderController{}, "POST:Login")

	beego.Router("/order/userOrderAdd", &controllers.OrderController{}, "POST:UserOrderAdd")

	beego.Router("/order/userOrder", &controllers.OrderController{}, "GET:UserOrder")

	beego.Router("/order/orderQuan", &controllers.OrderController{}, "GET:OrderQuan")

	beego.Router("/order/gongHan", &controllers.OrderController{}, "GET:GongHan")

	beego.Router("/order/gongAdd", &controllers.OrderController{}, "POST:GongAdd")

	beego.Router("/order/gongHans", &controllers.OrderController{}, "POST:GongHans")

	beego.Router("/order/Han", &controllers.OrderController{}, "GET:Han")
}
